package myapps.ttclient.protocol.message.powerpoint;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

import myapps.ttclient.GlobalVariables;
import myapps.ttclient.Helper;
import myapps.ttclient.baseclass_and_interface.TTClientMessage;


public class PPTShowDrawingScreenRequestMessage extends TTClientMessage
{
	public String temporaryKey = "";
	
	public PPTShowDrawingScreenRequestMessage(String temporaryKey)
	{
		this.temporaryKey = temporaryKey;
	}
	
	public static TTClientMessage parse(DataInputStream dis) throws IOException
	{
		throw new IOException("NotImplementedException");
	}
	
	@Override
	public void toDataOutputStream(DataOutputStream dos) throws IOException
	{
		dos.writeByte(DS_SHOW_DRAWING_SCREEN);
		dos.writeInt(GlobalVariables.NO_LENGTH_CODE);
		
		Helper.WriteStringToDataOutputStream(dos, temporaryKey);
	}

}
